﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VERKProjectHopur16.Models.ChildViewModel>" %>
<%@ Import Namespace="VERKProjectHopur16.Helpers" %> 

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend></legend>
            
            <div class="editor-label">
                <%: Html.Label(Lang.GetText("Menu", "Name")) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>

            <div class="editor-label">
                <%: Html.Label(Lang.GetText("Menu", "Birth_date")) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.BirthDate, new { @id = "form-birthdate" })%>
                <%: Html.ValidationMessageFor(model => model.BirthDate)%>
            </div>
            
            <div class="editor-label">
                <%: Html.Label(Lang.GetText("Menu", "About_c")) %>
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.About) %>
                <%: Html.ValidationMessageFor(model => model.About) %>
            </div>
            
            <div class="editor-label">
                <%: Html.Label(Lang.GetText("Menu", "Child_pass")) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ProfilePassword)%>
                <%: Html.ValidationMessageFor(model => model.ProfilePassword) %>
            </div>
            
            <p>
                <input type="submit" value="<%: Lang.GetText("Menu", "Submit") %>" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink(Lang.GetText("Menu", "Back"), "ChildProfile") %>
    </div>



